package com.wl.api.dto.system;

import java.io.Serializable;
import java.util.List;

import com.wl.api.dto.base.PaginationConst;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SecurityRoleDTO extends PaginationConst implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private String name;
	
	private List<String> moduleList;
	private String updateUser;
	private Long updateId;
	private boolean isDeleted = false;
	
	private List<SecurityModuleDTO> allModuleList; // 所有模块
	
	public SecurityRoleDTO buildMsg(long updateId, String updateUser) {
		this.updateUser = updateUser;
		this.updateId = updateId;
		return this;
	}
	public SecurityRoleDTO buildAllModuleList(List<SecurityModuleDTO> allModuleList) {
		this.allModuleList = allModuleList;
		return this;
	}

}
